package com.zr.planclass.mapper;

import com.zr.planclass.model.pojo.PlanClass;
import com.zr.planclass.model.pojo.PlanClassAddVo;
import com.zr.planclass.model.pojo.PlanClassExample;
import com.zr.planclass.model.pojo.PlanClassUpdateVo;
import com.zr.utils.page.PageParameterUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface PlanClassMapper {
    int countByExample(PlanClassExample example);

    int deleteByExample(PlanClassExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(PlanClass record);

    int insertSelective(PlanClass record);

    List<PlanClass> selectByExample(PlanClassExample example);

    PlanClass selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") PlanClass record, @Param("example") PlanClassExample example);

    int updateByExample(@Param("record") PlanClass record, @Param("example") PlanClassExample example);

    int updateByPrimaryKeySelective(PlanClass record);

    int updateByPrimaryKey(PlanClass record);

    Integer getCount(PageParameterUtil pageParameterUtil);

    List<PlanClass> getCurrentPageData(PageParameterUtil pageParameterUtil);

    int planClassStatus(PlanClass planClass);

    int queryPlanClassCode(String code);

    PlanClass queryPlanClassName(String name);

    int updatePlanClass(PlanClassUpdateVo planClassUpdateVo);


    void batchAddPlanClass(List<PlanClassAddVo> planClassAddVos);
}